<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>success</title>
</head>
<body>
<table border="10">
    <thead>
    <tr>
        <td>ID</td>
        <td>Name</td>
<!--        <td>Age</td>-->
    </tr>
    </thead>
    <tbody >
    <tr th:each="hotel:${hotels}">
        <td th:text="${hotel.hotelId}"></td>
        <td th:text="${hotel.hotelName}"></td>
<!--        <td th:text="${hotel.age}"></td>-->
    </tr>
    </tbody>
</table>
</body>
</html>